<?php
$name = '张三';

    ?>

<html>
<head>
    <meta charset="utf-8">
    <title>PHP文件中写html代码</title>
    <style>
        div{
            font-size: 20px;
            color: red;
        }
    </style>
</head>
<body>
    <div>
       欢迎您，<?php echo $name;?>
    </div>
</body>
</html>